package com.diandian.backend.kuaishou.life.exchange.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.diandian.backend.kuaishou.life.exchange.dto.KuaishouLifeTokenAddParamDTO;

import java.io.Serializable;
import java.util.Date;

public class KuaishouLifeTokenAddParam implements Serializable {

	private String userId;
	private String merchantId;
	private String appKey;
	private String sourceTokenData;
	private String accessToken;
	private String refreshToken;
	private String openId;
	private Long expiresIn;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date expiresDate;
	private String scopes;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	private Integer del;

	public KuaishouLifeTokenAddParamDTO toDTO(){
		KuaishouLifeTokenAddParamDTO dto = new KuaishouLifeTokenAddParamDTO();
		dto.setUserId(this.userId);
		dto.setMerchantId(this.merchantId);
		dto.setAppKey(this.appKey);
		dto.setSourceTokenData(this.sourceTokenData);
		dto.setAccessToken(this.accessToken);
		dto.setRefreshToken(this.refreshToken);
		dto.setOpenId(this.openId);
		dto.setExpiresIn(this.expiresIn);
		dto.setExpiresDate(this.expiresDate);
		dto.setScopes(this.scopes);
		dto.setCreateTime(this.createTime);
		dto.setDel(this.del);
		return dto;
	}

	public String getUserId() {
		return userId;
	}
	public String setUserId(String userId) {
		return this.userId = userId;
	}
	public String getMerchantId() {
		return merchantId;
	}
	public String setMerchantId(String merchantId) {
		return this.merchantId = merchantId;
	}
	public String getAppKey() {
		return appKey;
	}
	public String setAppKey(String appKey) {
		return this.appKey = appKey;
	}
	public String getSourceTokenData() {
		return sourceTokenData;
	}
	public String setSourceTokenData(String sourceTokenData) {
		return this.sourceTokenData = sourceTokenData;
	}
	public String getAccessToken() {
		return accessToken;
	}
	public String setAccessToken(String accessToken) {
		return this.accessToken = accessToken;
	}
	public String getRefreshToken() {
		return refreshToken;
	}
	public String setRefreshToken(String refreshToken) {
		return this.refreshToken = refreshToken;
	}
	public String getOpenId() {
		return openId;
	}
	public String setOpenId(String openId) {
		return this.openId = openId;
	}
	public Long getExpiresIn() {
		return expiresIn;
	}
	public Long setExpiresIn(Long expiresIn) {
		return this.expiresIn = expiresIn;
	}
	public Date getExpiresDate() {
		return expiresDate;
	}
	public Date setExpiresDate(Date expiresDate) {
		return this.expiresDate = expiresDate;
	}
	public String getScopes() {
		return scopes;
	}
	public String setScopes(String scopes) {
		return this.scopes = scopes;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public Date setCreateTime(Date createTime) {
		return this.createTime = createTime;
	}
	public Integer getDel() {
		return del;
	}
	public Integer setDel(Integer del) {
		return this.del = del;
	}
}
